import api from '../utils/api';

export async function queryList(param) {
  return api.post('/contract/queryList', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/contract/create', {
    data: JSON.stringify(param),
  });
}

export async function getConcatInfo(param) {
  return api.post('/contract/getConcatInfo', {
    data: param,
  });
}

export async function update(param) {
  return api.post('/contract/update', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/contract/deleteById', {
    data: param,
  });
}

export async function queryAllContractList(param) {
  return api.post('/contract/queryAllContractList', {
    data: param,
  });
}